Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Pregunta básica sobre Redux Saga: ¿"yield call (...)" bloquea o no bloquea?

Hola buenos programadores,

Soy nuevo en la saga redux.

Estoy hablando de este ejemplo: https://redux-saga.js.org/ (haga clic en la segunda pestaña, luego).

Línea 7:

 import { call, put, takeEvery, takeLatest } from 'redux-saga/effects' import Api from '...' // Worker saga will be fired on USER_FETCH_REQUESTED actions function* fetchUser(action) { try { const user = yield call(Api.fetchUser, action.payload.userId); yield put({type: "USER_FETCH_SUCCEEDED", user: user}); } catch (e) { yield put({type: "USER_FETCH_FAILED", message: e.message}); } } // Starts fetchUser on each dispatched USER_FETCH_REQUESTED action // Allows concurrent fetches of user function* mySaga() { yield takeEvery("USER_FETCH_REQUESTED", fetchUser); }

¿La instrucción "rendir llamada (Api.fetchUser, action.payload.userId);" bloquea o no bloquea?

El fondo es, necesito averiguarlo, el clima de la siguiente línea (yield put...) solo se ejecutará, una vez que haya regresado la instrucción anterior a "yield call (...)".

Gracias de antemano SpeedyV

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!